﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdmNoticeManage.aspx.cs"
    Inherits="LIMS.Web.AdmNoticeManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <table width="750" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                </td>
                <td height="30" align="center" style="font-size: 24px;">
                    <strong>信息管理</strong>
                </td>
            </tr>
            <tr>
                <td height="30" align="left">
                </td>
                <td height="30" align="left" style="width: 700px">
                    <div id="1" style="float: left; width: 240px;">
                        <font size="2">信息标题<asp:TextBox ID="txtCaption" runat="server" Columns="6" MaxLength="50"
                            Width="180px"></asp:TextBox>
                        </font>
                    </div>
                    <div id="2" style="float: left; width: 200px; margin-left: 30px;">
                        所属类别<asp:DropDownList ID="ddlInfo" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlInfo_SelectedIndexChanged">
                            <asp:ListItem Text="所有类别" Value="-1" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="紧急通知" Value="1"></asp:ListItem>
                            <asp:ListItem Text="普通通知" Value="0"></asp:ListItem>
                        </asp:DropDownList>
                    </div>
                    <div id="3" style="float: left; width: 200px;">
                        <asp:Button ID="btnFind" runat="server" OnClick="btnFind_Click" Text="搜 索" Style="margin-left: 25px;
                            float: left; width: 60px;" />
                        <asp:Button ID="btnAddNotice" runat="server" OnClick="btnAddNotice_Click" Text="新 增"
                            Style="margin-left: 25px; float: left; width: 60px;" />
                    </div>
                </td>
            </tr>
            <tr>
                <td height="30" colspan="2" align="left">
                    <br />
                    <asp:Repeater ID="rpNewsInfo" runat="server" OnItemDataBound="rpNewsInfo_OnItemDataBound">
                        <HeaderTemplate>
                            <table border="1" width="100%">
                                <tr align="center">
                                    <th>
                                        序号
                                    </th>
                                    <th>
                                        新闻标题
                                    </th>
                                    <th>
                                        新闻类别
                                    </th>
                                    <th>
                                        主要内容
                                    </th>
                                    <th>
                                        编辑
                                    </th>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr align="center">
                                <td width="10%">
                                    <%#Container.ItemIndex+1 %>
                                </td>
                                <td>
                                    <%#Eval("newsInfoTitle")%>
                                </td>
                                <td>
                                    <%# ConventNewsTypeToString(Eval("newsInfoType"))%>
                                </td>
                                <td align="left">
                                    <%#SubString(Eval("newsInfoDetail").ToString(),15)%>
                                </td>
                                <td>
                                    <a href="AdmIsuueNotice.aspx?ID=<%#Eval("newsInfoID") %>">编辑1</a>
                                    <asp:HyperLink ID="HyperLink1" Text="编辑2" runat="server" NavigateUrl='<%# "AdmIsuueNotice.aspx?InfoId=" + DataBinder.Eval(Container.DataItem,"newsInfoID") %>'></asp:HyperLink>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <br />
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CustomInfoHTML="总记录数:%RecordCount%, 总页数:%PageCount%, 当前为第 %CurrentPageIndex% 页"
                        FirstPageText="<<" LastPageText=">>" LayoutType="Div" NextPageText=">" NumericButtonCount="6"
                        PageIndexBoxType="DropDownList" PageSize="3" PrevPageText="<" ShowNavigationToolTip="true"
                        PagingButtonSpacing="6px" ShowCustomInfoSection="Right" OnPageChanged="AspNetPager1_PageChanged"
                        Font-Size="12px" HorizontalAlign="Center" Width="100%" AlwaysShow="true" CustomInfoSectionWidth="40%">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
